package com.zzy.database.service;

import com.zzy.database.pojo.Account;

import java.math.BigDecimal;
import java.util.List;

public interface AccountService {
    void openAccount(Account account);
    void deleteAccount(String accountId);
    Account getAccountInfo(String accountId);
    List<Account> getAccountsByCustomerId(String customerId);
    List<Account> getAllAccounts();
    List<Account> getAccountsByBranchId(String branchId);
    void updateBalance(String accountId, double amount) throws Exception;
    double getTotalBalanceByBranch(String branchId);

}